Skip to content

Use registry API for agent detection#467

Merged
NagyVikt merged 1 commit into
mainfrom
agent/codex/agents-detect-registry-api-2026-04-29-22-06
Apr 29, 2026
Merged

Use registry API for agent detection#467
NagyVikt merged 1 commit into
mainfrom
agent/codex/agents-detect-registry-api-2026-04-29-22-06

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by gx branch finish (PR flow).

Agent detection was walking ad-hoc registry shapes and could miss agents exposed only through the canonical registry helpers. This makes getAgentDefinition and resolveAgent the preferred lookup path, uses AGENT_IDS/getAgentDefinitions for default scans, and keeps unknown ids as structured unavailable results without executing anything.

Constraint: User limited edits to src/agents/detect.js and test/agents-detect.test.js

Rejected: Probing unknown ids as shell commands | would execute untrusted command names and hide registry drift

Confidence: high

Scope-risk: narrow

Tested: node --test test/agents-detect.test.js
@NagyVikt NagyVikt merged commit fe0f72e into main Apr 29, 2026
@NagyVikt NagyVikt deleted the agent/codex/agents-detect-registry-api-2026-04-29-22-06 branch April 29, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant